<!DOCTYPE html>
<html lang="en"   xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加员工</title>
</head>
<body>
<form th:action="@{/emp/up}">
    <input type="hidden"  th:value="${list.eid}" name="eid">
    姓名:<input type="text" name="ename" th:value="${list.ename}"><br>
    性别:<input type="radio" value="1" name="sex"  th:checked="${list.sex=='1'}" >男
         <input type="radio" value="2" name="sex" th:checked="${list.sex=='2'}">女<br>
    出生日期:<input type="date" name="birth"  th:value="${#dates.format(list.birth,'yyyy-MM-dd')}"><br>
    入职时间:<input type="date" name="jdate"  th:value="${#dates.format(list.jdate,'yyyy-MM-dd')}"><br>
        学历:<input type="radio" value="高中" name="stu"  th:checked="${list.stu.equals('高中')}">高中
            <input type="radio" value="大专" name="stu"  th:checked="${list.stu.equals('大专')}">大专
            <input type="radio" value="本科" name="stu"  th:checked="${list.stu.equals('本科')}">本科<br>
    职务:<select name="zid">
    <option th:each="z :${zhiw}" th:text="${list.zid==z.zid}?${z.zname}:''"></option>
    <option   th:each="z :${zhiw}" th:value="${z.zid}" th:text="${z.zname}"></option>
</select><br>
    地址:<input type="text" name="addss" th:value="${list.addss}"><br>
    电话:<input type="text" name="phone" th:value="${list.phone}"><br>
    紧急联系人:<input type="text" name="jphone" th:value="${list.jphone}"><br>
    所属部门:<select name="did">
    <option th:each="z :${dype}" th:text="${list.did==z.did}?${z.dname}:''"></option>
    <option th:each="d :${dype}" th:value="${d.did}" th:text="${d.dname}"></option>
</select><br>
    <input type="submit" value="修改入职信息">
</form>
</body>
</html>